package com.jnu.hc.jnuhcdoccms.dto;
//统一后端返回数据类型
public class ResponseObject<T> {
    //信号
    private Integer status;
    //提示信息
    private String desc;
    //结果
    T data;
    public static final Integer SUCCESS_STATUS=200;
    public static final String SUCCESS_DESC="success";


    public ResponseObject(Integer status, String desc, T data) {
        this.status = status;
        this.desc = desc;
        this.data = data;
    }
    public ResponseObject(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }
    public Integer getStatus() {
        return status;
    }
    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getDesc() {
        return desc;
    }
    public void setDesc(String desc) {
        this.desc = desc;
    }
    public T getData() {
        return data;
    }
    public void setData(T data) {
        this.data = data;
    }

}
